/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-03-19     weihui       the first version
 */
#ifndef APPLICATIONS_BSP_BSP_SPI2_H_
#define APPLICATIONS_BSP_BSP_SPI2_H_

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include <bsp/bsp.h>

#define SPI_BUS_NAME             "spi2"
#define W25Q_SPI_DEVICE_NAME     "spi20"
#define W25Q_FLASH_NAME          "W25Q128"

int bsp_spi_init(void);
float_t nor_flash_float_read(uint32_t addr);
int nor_flash_write(uint32_t addr,float_t value);

#define easyflash_add  0

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* APPLICATIONS_BSP_BSP_SPI2_H_ */
